home *** CD-ROM | disk | FTP | other *** search
- Path: hack.lakeheadu.ca!romulus
- From: romulus@lakeheadu.ca (Romulus the Almighty)
- Newsgroups: comp.lang.c
- Subject: Writing to a port
- Message-ID: <22898@storm.LakeheadU.Ca>
- Date: 29 Jan 1996 16:48:27 GMT
- Sender: news@storm.LakeheadU.Ca
- Organization: dis
- X-Newsreader: TIN [version 1.2 PL2]
-
- Help would be greatly appreciated with the following:
-
- I am attempting to make a cgi C program that will telnet to port 25 on
- a server, take an argument to who the sender is, and take the rest of the
- argument and send it to the recipient directly using sendmail on port 25
- of a server. I use system(); to telnet over to the port and here is where
- my problem is: How do I send statements directly to the port such as
- "HELO flash.lakeheadu.ca" and the other necessary statements...
-
- Thanx
-
- John
-
-